package com.itttq.sc.bspm;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.context.annotation.Configuration;

import com.itttq.sc.GenericApplication;

@EnableEurekaServer		// 此注解表明为注册服务
@EnableHystrix		    		// 断路器
@SpringBootApplication
@MapperScan("com.itttq.sc.mapper") // mybatis配置
@Configuration
//@EnableAuthorizationServer	// Oauth2认证使用
//@PropertySources({@PropertySource("classpath:redis.properties"), 
//	@PropertySource("classpath:jdbc.properties")})
public class ItttqBspmApplication extends GenericApplication {

	public static void main(String[] args) {
		SpringApplication.run(ItttqBspmApplication.class, args);
	}
}
